 package net.go176.backpack.util.simplenbt;
 
 import org.bukkit.entity.Entity;
 import org.bukkit.inventory.ItemStack;
 
 public class NBTTagCompound
   extends NBTBase {
   NBTTagCompound(Object handle) {
     super(handle);
   }
   
   public NBTTagCompound() {
     super(Reflector.newNBTTagCompound());
   }
   
   public boolean hasKey(String key) {
     return Reflector.nbttcHasKey(this.handle, key);
   }
   
   public NBTBase get(String key) {
    Object value = Reflector.nbttcGet(this.handle, key);
     return (value == null) ? null : Reflector.asSimpleMirror(value);
   }
   
   public void remove(String key) {
     Reflector.nbttcRemove(this.handle, key);
   }
   
   public void set(String key, NBTBase value) {
     Reflector.nbttcSet(this.handle, key, value.getHandle());
   }
   
   public ItemStack createStack() {
     return Reflector.asCraftMirror(Reflector.createStack(this.handle));
   }
   
   public NBTTagCompound saveStack(ItemStack itemstack) {
     Reflector.saveStackToNBT(Reflector.asNMSCopy(itemstack), this.handle);
     return this;
   }
   
   public void writeToEntity(Entity entity) {
     Reflector.readFromNBT(Reflector.getNMSEntity(entity), this.handle);
   }
   
   public void readFromEntity(Entity entity) {
     Reflector.writeToNBT(Reflector.getNMSEntity(entity), this.handle);
   }
   
   public void writeToNMSEntity(Object entity) {
     Reflector.readFromNBT(entity, this.handle);
   }
   
   public void readFromNMSEntity(Object entity) {
     Reflector.writeToNBT(entity, this.handle);
   }
 }


/* Location:              D:\User\Xuan\Downloads\MyBackpack1.2.5.jar!\net\saralab\mybackpac\\util\simplenbt\NBTTagCompound.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.1.3
 */